#ifndef SPI_H
#define SPI_H

int spi_open(int port, unsigned int speed);
int spi_rw(int port, unsigned char *tx, unsigned char *rx, int len);
void spi_close(int port);

#endif
